package com.xiaolin.designmode.chain_of_responsibility;

/**
 * @ClassName ChainTest
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/6
 * @Version 1.0
 */
public class ChainTest {
    public static void main(String[] args) {
        Handler c1=new ConcreteHandler1();
        Handler c2=new ConcreteHandler2();
        c1.setNext(c2);
        c1.handleRequest("three");
    }
}
